package com.six.usersso.vo;

import com.six.core.entity.TbUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * @author: WangPeng
 * @createTime: 2023/03/01 16:35
 * @description:
 * @version: v1.0
 */
public class MyUser extends User {

    private TbUser tbUser;

    public MyUser(String username, String password, Collection<? extends GrantedAuthority> authorities,TbUser tbUser) {
        super(username, password, authorities);
        this.tbUser=tbUser;
    }

    public TbUser getTbUser() {
        return tbUser;
    }

    public void setTbUser(TbUser tbUser) {
        this.tbUser = tbUser;
    }
}
